//
//  WZPLoginRegisterView.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/8.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "WZPLoginRegisterView.h"
@interface WZPLoginRegisterView()

@property (weak, nonatomic) IBOutlet UIButton *LoginBtn;


@end

@implementation WZPLoginRegisterView

+(instancetype)loginView{
    
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];

}
+(instancetype)registerView{
    
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];

}
// 获取按钮图片
- (void)awakeFromNib
{
    UIImage * image = [_LoginBtn backgroundImageForState:UIControlStateNormal];
    image = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    [_LoginBtn setBackgroundImage:image forState:UIControlStateNormal];

}
@end
